<%--
  Created by IntelliJ IDEA.
  User: 松红
  Date: 2017/6/7
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
  <title>更新学生信息</title>
  <style>
    a{
      text-decoration: none;
      color: blue;
    }
    a:hover{
      color: chocolate;
    }
    table tr td {
      border: 1px solid black;
      text-align: center;
      margin: 0;
      padding: 0;
    }

    table {
      border: 1px solid black;
      margin: 0 auto;
    }
  </style>
</head>
<body>
<div>
  <sf:form method="post" modelAttribute="student">
    <table>

      <tr>
        <td>姓名</td>
        <td><sf:input path="studentName"></sf:input></td>
      </tr>
      <tr>
        <td>性别</td>
        <td><sf:input path="studentSex"></sf:input></td>
      </tr>
      <tr>
        <td>电话</td>
        <td><sf:input path="studentPhone"></sf:input></td>
      </tr>
      <tr>
        <td>学号</td>
        <td><sf:input path="studentNumber"></sf:input></td>
      </tr>
      <tr>
        <td>地址</td>
        <td><sf:input path="studentAddress"></sf:input></td>
      </tr>
        <%--<tr>--%>
        <%--<td>班级</td>--%>
        <%--<td><sf:input path="studentStatus"></sf:input></td>--%>
        <%--</tr>--%>
      <tr>
        <td colspan="2">
          <input type="submit" value="完成更新" style="width: 100%"/>
        </td>
      </tr>
      <tr>
        <td  colspan="2"><a href="/student/list">返回首页</a>
        </td>
      </tr>
    </table>
  </sf:form>

</div>
</body>
</html>
